<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<html>
<head>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css"/>
</head>

<body>

<table id="demo" layui-filter="test"></table>

<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.12.4.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/layui/layui.js"></script>

<script type="text/javascript">
    layui.use(["table","form","layer","upload"],function(){
        var table = layui.table;
        var layer = layui.layer;
        var upload = layui.upload;

        table.render({
            elem: "#demo"
            ,url: "${pageContext.request.contextPath}/log/logs"
            ,page: true
            ,limit: 5
            ,limits: [5,7,10]
            ,cols:[[
                ,{field: 'logId',title: 'ID'}
                ,{field: 'username',title:'管理姓名'}
                ,{field: 'logTime',title:'日志时间'}
                ,{field: 'logIp',title:'登陆IP'}
                ,{field: 'logContent',title:'操作内容'}
                ,{field: 'logType',title:'操作类型'}
            ]]
        });
    })
</script>
</body>

</html>